import request from '@/utils/request';

// 获取路由
export const getRouters = () => {
	return request({
		url: '/admin/getRouters',
		method: 'get',
	});
};

// 获取白名单
export const getWhiteList = () => {
	return request({
		url: '/admin/getWhiteList',
		method: 'get',
	});
};

export function getMenu() {
	return request({
		url: '/admin/menu',
		// params: { type: '1' },
		method: 'get',
	});
}

export function getTopMenu() {
	return request({
		url: '/admin/menu',
		params: { type: 'top' },
		method: 'get',
	});
}
